package com.cn.wanxi.dao.impl;

import com.cn.wanxi.dao.CompanyDao;
import com.cn.wanxi.model.CompanyModel;
import com.cn.wanxi.util.GetSqlSession;
import org.apache.ibatis.session.SqlSession;

public class CompanyImpl implements CompanyDao {
    @Override
    public CompanyModel getCompanyModel() {
        SqlSession sqlSession = GetSqlSession.getSqlSession();//连接数据库
        CompanyModel model = sqlSession.selectOne("com.cn.wanxi.dao.CompanyDao.getCompanyModel");
        GetSqlSession.commit();
        return model;
    }
}
